package com.xhcl.system.service;

import java.util.List;
import java.util.Map;

import com.xhcl.common.exception.BusinessException;
import com.xhcl.system.domain.AccountReport;
import com.xhcl.system.domain.TSrhsKmye;

/**
 * 科目余额Service接口
 * 
 * @author xhcl
 * @date 2020-09-03
 */
public interface ITSrhsKmyeService 
{
    /**
     * 查询科目余额
     * 
     * @param nd 科目余额ID
     * @return 科目余额
     */
    public TSrhsKmye selectTSrhsKmyeById(Long nd);

    /**
     * 查询科目余额列表
     * 
     * @param tSrhsKmye 科目余额
     * @return 科目余额集合
     */
    public List<TSrhsKmye> selectTSrhsKmyeList(TSrhsKmye tSrhsKmye);

    /**
     * 新增科目余额
     * 
     * @param tSrhsKmye 科目余额
     * @return 结果
     */
    public int insertTSrhsKmye(TSrhsKmye tSrhsKmye);

    /**
     * 修改科目余额
     * 
     * @param tSrhsKmye 科目余额
     * @return 结果
     */
    public int updateTSrhsKmye(TSrhsKmye tSrhsKmye);

    /**
     * 批量删除科目余额
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTSrhsKmyeByIds(String ids);

    /**
     * 删除科目余额信息
     * 
     * @param nd 科目余额ID
     * @return 结果
     */
    public int deleteTSrhsKmyeById(Long nd);
    
    public List<TSrhsKmye> selectTSrhsKmyeForNzjzList();
    
    public void doNzzz(List<TSrhsKmye> list,String userName) throws BusinessException;
    
    public void doFinal	() throws BusinessException;
    public void undoFinal	() throws BusinessException;
    
    
    /**
     * 试算平衡
     * @param tSrhsKmye
     * @return
     */
    public List<AccountReport> selectTrialBalanceList(TSrhsKmye tSrhsKmye);
    /**
     * 检查平衡
     * @param tSrhsKmye
     * @throws BusinessException
     */
    public void docallTrialBalanceCheck(TSrhsKmye tSrhsKmye) throws BusinessException; 
    
    
    /**
     * 科目余额
     * @param tSrhsKmye
     * @return
     */
    public List<AccountReport> selectAccountSubjectList(TSrhsKmye tSrhsKmye);
}
